package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.ApiOperation;

public interface AdChannelService extends IService<AdChannel> {

    /**
     * 根据名称分页查询
     * @param dto
     * @return
     */
    public ResponseResult findByNameAndPage(ChannelDto dto);

    /**
     * 新增
     * @param channel
     * @return
     */
    public ResponseResult insertChannel(AdChannel channel);

    /**
     *  修改频道
     * @param channel
     * @return
     */
    public ResponseResult updateChannel(AdChannel channel);

    /**
     *  删除频道
     * @param id
     * @return
     */
    public ResponseResult deleteChannel(Integer id);
}
